package com.elsa.smart_buffet.controller;

import com.alibaba.fastjson.JSON;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;
import com.elsa.smart_buffet.service.MenuPriceService;
import com.elsa.smart_buffet.service.MonthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName : MonthController  //类名
 * @Author : elsa //作者
 */
@RestController
@CrossOrigin
public class MonthController {

    @Autowired
    private MonthService monthService;

    @GetMapping("/getMonthIncomeAndExpend")
    public ResponseResult getMonthIncomeAndExpend() {
        return monthService.getMonthIncomeAndExpend();
    }

    @GetMapping("/getMonthTopSale")
    public ResponseResult getMonthTopSale() {
        return monthService.getMonthTopSale();
    }

}
